package cn.mazexal.examapi.dataware;

import cn.mazexal.examapi.models.db.ExamQuestionDO;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;

import java.util.List;

/**
 * 题目 Mapper
 */
@Mapper
public interface ExamQuestionMapper extends BaseMapper<ExamQuestionDO> {


    List<ExamQuestionDO> getExamQuestionListByMenuIds(@Param("menuIds") List<Long> menuIds,
                                                      @Param("examBankId") Long examBankId,
                                                      @Param("pageSize") Integer pageSize,
                                                      @Param("limitTime") Long limitTime,
                                                      @Param("userId")Long userId,
                                                      @Param("questionType")Integer questionType);

    List<ExamQuestionDO> selectByExamId(@Param("examId") Long examId);
}